﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.QLMS.Entity.TestOnline;

namespace ZDSoft.QLMS.Entity.QuestionLibrary
{
    [ActiveRecord]
    public class TestPaper : EntityBase<TestPaper>
    {
        [Property]
        public int Min { get; set; }

        [Property]
        public string Name { get; set; }
         [Property]
        public string AuditOpinion { get; set; }
        [Property]
        public bool Ispass { get; set; }

        [BelongsTo("CourseID")]
        public Course Course { get; set; }

        [Property]
        public double score { get; set; }

        [HasMany(typeof(TestPaperPart), ColumnKey = "TestPaperID", Inverse = true)]
        public IList<TestPaperPart> TestPaperParts { get; set; }

        [HasMany(typeof(Test), ColumnKey = "TestPaperID", Inverse = true)]
        public IList<Test> TestPapers { get; set; }
    }
}
